package com.liao.dao;

import com.liao.bean.User;

import java.util.HashMap;
import java.util.List;

public interface UserDao {

    /**
     * 查询所有用户
     * @return
     * @throws Exception
     */
    List<User> selectUserList() throws Exception;

    /**
     * 查询用户
     * @param inputUser
     * @return
     */
    User queryUserByAcount(User inputUser) throws Exception;

    /**
     * 根据用户名称模糊查询角色列表
     * @param userName
     * @return
     * @throws Exception
     */
    List<User> selectUserListLikeUserName(String userName) throws Exception;

    /**
     * 添加用户
     * @param user
     * @throws Exception
     */
    void addUser(User user) throws Exception;

    /**
     * 修改用户
     * @param map
     * @throws Exception
     */
    void updateUser(HashMap<String, Object> map) throws Exception;

    /**
     * 根据用户id用户
     * @param userId
     * @throws Exception
     */
    void deleteUserById(String userId) throws Exception;


//        <!--根据账户查询用户信息-->
    User selectUserByAccount(String account) throws Exception;
}
